OpenTime做最称心的C++开发时间库 | 您所在的位置:网站首页 › Linux c开发工具 › OpenTime做最称心的C++开发时间库 |
OpenTime做最称心的C++开发时间库
跨平台多线程设计! 程序开发频繁涉及时间处理,有一个好用的时间库可以大幅提高工作效率。 OpenTime是最简单易用的C++处理时间工具。 OpenLinyou项目设计跨平台服务器框架,在VS或者XCode上写代码,无需任何改动就可以编译运行在Linux上,甚至是安卓和iOS. OpenLinyou:https://github.com/openlinyou 跨平台支持Windows、linux、Mac、iOS、Android等跨平台设计 编译和执行请安装cmake工具,用cmake可以构建出VS或者XCode工程,就可以在vs或者xcode上编译运行。 源代码:https://github.com/openlinyou/opentime git clone https://github.com/openlinyou/opentime cd ./opentime mkdir build cd build cmake .. #如果是win32,在该目录出现opentime.sln,点击它就可以启动vs写代码调试 make ./test 全部源文件 src/opentime.h src/opentime.cpp 1.时间戳转换成字符串 #include #include #include "opentime.h" int main() { OpenTime openTime(OpenTime::Unixtime()); std::cout |
今日新闻 |
推荐新闻 |
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 |